package com.sky.controller.admin;

import com.sky.dto.ShopOrderRequestDTO;
import com.sky.result.PageResult;
import com.sky.result.Result;
import com.sky.service.ShopOrderService;
import com.sky.vo.ShopOrderVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/admin/order")
public class ShopOrderController {
    @Autowired
    private ShopOrderService shopOrderService;

    @GetMapping("/conditionSearch")
    public Result<PageResult> conditionSearch(ShopOrderRequestDTO dto){
        PageResult list = shopOrderService.list(dto);
        return Result.success(list);
    }
}
